package com.ssvendas.modelo.arquivos;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.SequenceGenerator;

@Entity
public class NFe implements Serializable{

	private static final long serialVersionUID = 7901175016938868459L;

	@Id
	@SequenceGenerator(sequenceName="NFE_SEQ",allocationSize = 1, name = "ID_NFE")
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="ID_NFE")
	private String id;
	
	@Lob 
	@Column(columnDefinition="BYTEA")
	private byte[] xml; //mudar depois

	public byte[] getXml() {
		return xml;
	}

	public void setXml(byte[] xml) {
		this.xml = xml;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}
